﻿using System;

namespace TextEditor
{
   

    public class A_EnableSmartTag : A_Action
    {
        public override string ActionName()
        {
            return "enablesmarttag";
        }

        public override int CheckState()
        {
            return (base.OwnerDocument.OwnerControl.EnableSmartTag ? 1 : 0);
        }

        public override bool Execute()
        {
            base.OwnerDocument.OwnerControl.EnableSmartTag = !base.OwnerDocument.OwnerControl.EnableSmartTag;
            base.OwnerDocument.OwnerControl.UpdateSmartTag();
            return true;
        }
    }
}

